import { createRouter, createWebHistory } from "vue-router";
import layout from '../views/layout.vue'
import index from '../views/pages/index/index.vue'
import login from '../views/pages/login/login.vue'

export default createRouter({
    history: createWebHistory(),
    routes: [
        {
          path:'/redirect',
          component: layout,
          hidden: true,
          children:[
              {
                  path: '/redirect/:path*',
                  component: index
              }
          ]
        },
        {
            path: '',
            component: layout,
            redirect: 'index',
            children:[
                {
                    path:"index",
                    component: index,
                }
            ]
        },
        {
            path: '/ok',
            component: login
        },
        {
            path: '/showTeam',
            component: import('../views/pages/showTeam.vue')
        }
    ],
});
